﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamIn.Structures.LocalDB.entities;
using DreamIn.Structures.LocalDB.DataAccessLayer;

namespace DreamIn.Structures.LocalDB.BusinessLogic
{
    class AlbumBL
    {
        public List<AlbumE> GetAlbums()
        {
            AlbumDAL albumDAL = new AlbumDAL();
            return albumDAL.GetAlbums();
        }
        public void AddAlbum(string name, string path, string folderName)
        {
            AlbumDAL albumDAL = new AlbumDAL();
            albumDAL.AddAlbum(name, path, folderName);
        }

        public void UpdateAlbum(AlbumE album)
        {
            AlbumDAL albumDAL = new AlbumDAL();
            albumDAL.UpdateAlbum(album);
        }

        public void DeleteAlbum(AlbumE album)
        {
            AlbumDAL albumDAL = new AlbumDAL();
            albumDAL.DeleteAlbum(album);
        }
    }
}
